package com.hutao.medical.mapper.borrow;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hutao.medical.pojo.borrow.BorrowFunction;
import com.hutao.medical.pojo.dto.MedBorrowDto;

public interface BorrowFunctionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BorrowFunction record);

    int insertSelective(BorrowFunction record);

    BorrowFunction selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BorrowFunction record);

    int updateByPrimaryKey(BorrowFunction record);
    
    /**
     * 查询借阅信息进行审核
     * @param medBorrowDto
     * @return
     */
    List<Map<String,Object>> getMedicalBorrowList(MedBorrowDto medBorrowDto);
    
    /**
     * 查询借阅信息总数
     * @param medBorrowDto
     * @return
     */
    int getMedicalBorrowListCount(MedBorrowDto medBorrowDto);
    
    
    List<Map<String,Object>> getMedicalBorrowSearchList(MedBorrowDto medBorrowDto);
    
    
    int getMedicalBorrowSearchListCount(MedBorrowDto medBorrowDto);
    
    //移动端病案借阅
    List<Map<String,Object>> getMedicalBorrowSearchList_mobile(Map<String, Object> params);
    
    int getMedicalBorrowSearchListCount_mobile(Map<String, Object> params);
    
    
    int getMedBorrowRecordListCount(MedBorrowDto medBorrowDto);
    
    List<Map<String,Object>>  getMedBorrowRecordList(MedBorrowDto medBorrowDto);
    
    List<Map<String,Object>> getBorrowedFirstGuidList(@Param("borrowedMan")String borrowMan);
}